PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


ThemeEraseUPP

The Appearance Manager defines the type for an application-defined background drawing function as follows:

typedef pascal (void, ThemeEraseProcPtr) (
                     const Rect *bounds,
                     UInt32 eraseData,
                     SInt16 depth,
                     Boolean isColorDev);

The Appearance Manager defines the data type ThemeEraseUPP to identify the universal procedure pointer for an application-defined background drawing function:

typedef ThemeEraseProcPtr ThemeEraseUPP;

You typically use the NewThemeEraseProc macro like this:

ThemeEraseUPP myThemeEraseUPP;
myThemeEraseUPP = NewThemeEraseProc(MyThemeEraseProc);

You typically use the CallThemeEraseProc macro like this:

CallThemeEraseProc(myThemeEraseUPP, bounds, eraseData, depth, isColorDev);

To implement your own background drawing function, see MyThemeEraseProc . The ThemeEraseProcPtr type is available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)